package com.oracle.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.oracle.mapper.CommandMapper;
import com.oracle.pojo.Command;
import com.oracle.service.CommandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class CommandServiceImpl implements CommandService {

    @Autowired
    private CommandMapper commandMapper;

    @Override
    public Command findOneCommand(String commandnum) {
        QueryWrapper<Command> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("commandnum", commandnum);
        Command command = commandMapper.selectOne(queryWrapper);
        return command;
    }
}
